public class Main {
    public static void main(String[] args) {
        System.out.println(fac(5));
    }
    public static int fac(int x){
        if(x == 1){
            return 1;
        }
        return fac(x-1) * x;
    }
}